﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Hotel.DAL.Migrations
{
    public partial class log6 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "T_House_No",
                columns: table => new
                {
                    HN_Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HY_Id = table.Column<int>(type: "int", nullable: false),
                    HS_Id = table.Column<int>(type: "int", nullable: false),
                    HN_Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HN_Desc = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HN_CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    HN_UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    HN_State = table.Column<int>(type: "int", nullable: false),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_T_House_No", x => x.HN_Id);
                });

            migrationBuilder.CreateTable(
                name: "T_House_State",
                columns: table => new
                {
                    HS_Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HS_Name = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_T_House_State", x => x.HS_Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "T_House_No");

            migrationBuilder.DropTable(
                name: "T_House_State");
        }
    }
}
